package com.ffyc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttribute;

import javax.servlet.http.HttpServletRequest;


@Controller
public class HelloController {
    //"/"就是当前工程的上下文路径
    @RequestMapping(value = "/")
    public String index(){
        //返回视图名称
        //返回视图名称
        //aaaaaa
        return "index";
    }

    @RequestMapping("/target")
    public String toTarg(){
        return "target";
    }
}
